﻿using FluentNHibernate.Mapping;

namespace SenileCoderMvc.Library.Models.ClassMaps
{
    public sealed class CodeSnippetMap : ClassMap<CodeSnippet>
    {
        public CodeSnippetMap()
        {
            
            Table(MappingConstants.SnippetTable);

            Id(o => o.Id, "Id").GeneratedBy.Native();

            Version(o => o.Modified).Column("Modified");

            Map(o => o.Name, "Name");
            Map(o => o.Snippet, "Snippet");
            Map(o => o.Created, "Created");
        }
    }
}
